package com.liangsui.mss.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Collection;
import java.util.Map;

/**
 * @ClassName: SchedulingDto
 * @Description: 封装页面需要的数据
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "com-liangsui-dto-SchedulingDto")
public class SchedulingDto implements Serializable {

	//用户ID
	private Long userId;

	//部门ID
	private Long deptId;

	//排班类型
	private String subsectionType; //1:上午 2:下午 3:晚上

	//星期的值班值
	private Collection<String> schedulingType;//存放周一到周日的schedulingType的时间段是门诊还是急诊

	//星期值班的记录 key 是日期
	@JsonIgnore
	private Map<String, String> record;  //存放星期值班的记录 key 指日期     周一到周日的日期字符串     value 有值(1/2)||没值("")

	public SchedulingDto(Long userId, Long deptId, String subsectionType, Map<String, String> map) {
		this.userId = userId;
		this.subsectionType = subsectionType;
		this.record = map;
		this.deptId = deptId;
	}

}
